// 包装组件入口
import Vue from 'vue';


// components
import empty from './empty/index.tsx';
import input from './input/index.tsx';
import select from './select/index.tsx';
import selectGroup from './select_group/index.tsx'
import radioGroup from './radio_group/index.tsx';
import checkbox from './checkbox/index.tsx';
import datePicker from './datePicker/index.tsx';
import switchBtn from './switch/index.tsx'
import cascader from './cascader/index.tsx'


const conf = {
    
    empty,
    input,
    select,
    selectGroup,
    radioGroup,
    checkbox,
    datePicker,
    switchBtn,
    cascader,
    
};


export default (componentName:string):Vue =>{

    if(!conf[componentName]){
        throw `包装组件${componentName}未定义`
    }

    return conf[componentName];
}